<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>搜索-乡村夜话-最美乡村</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wx/css/detail.css" />
</head>
<body>
<div class="product">
    <div id="header">
    	<div class="logo"></div>
        <div class="search">
        <form action="__MODULE__/Article/stories_ls/" method="get">
        <input name="keyword" type="text" value="{$keyword}" placeholder="搜索乡村夜话"/>
        </form>
        <i></i></div>
    </div>
    <div class="journal">
    	<h2>乡村夜话</h2>
        <div class="journallist">
        	<ul>
        <volist name="arcli" id="vo">
        	 <eq name="vo.img_num" value="1">
            	<li class="one">
                	<a href="__MODULE__/Article/stories/id/{$vo.arc_id}/">
                    	<div class="name">
                        	<h3>{$vo.title}</h3>
                            <p><span>
                    <eq name="vo.img" value="">
                <img src="__PUBLIC__/Uploads/user_info/default.jpg"/>
                    <else/>
                <img src="__PUBLIC__/Uploads/{$vo.img}"/>
                    </eq>
                            </span><b>{$vo.name}</b><em>{$vo.com_num}评论</em>
                            <time> {$vo.addtime|date='Y-m-d',###}</time></p>
                        </div>
                        <div class="pic">
                            <volist name="vo.img_arr" id="img0">
                            <img src="{$img0}"/>
                            </volist>
                        </div>	
                    </a>
                </li>
             <else/>
                <li class="two">
                	<a href="__MODULE__/Article/stories/id/{$vo.arc_id}/">
                    	<h3>{$vo.title}</h3>
                        <div class="pic">
                            <volist name="vo.img_arr" id="img0">
                            <span><img src="{$img0}"/></span>
                            </volist>
                        </div>
                        <p><span>
                    <eq name="vo.img" value="">
                <img src="__PUBLIC__/Uploads/user_info/default.jpg"/>
                    <else/>
                <img src="__PUBLIC__/Uploads/{$vo.img}"/>
                    </eq>
                        </span><b>{$vo.nickname}</b><em>{$vo.com_num}评论</em>
                        <time>{$vo.addtime|date='Y-m-d',###}</time></p>
                    </a>
                </li>
             </eq>
         </volist>   
            </ul>
        </div>
    </div>
    <div id="footer">
    	<a href="http://www.xiangtws.com/Wx/">
        	<div class="pic"><img src="__PUBLIC__/wx/img/icon-index.png"/></div>
            <div class="topic">我的社区</div>
        </a>
    	<a href="__MODULE__/Village/country/">
        	<div class="pic"><img src="__PUBLIC__/wx/img/icon-village.png"/></div>
            <div class="topic">最美乡村</div>
        </a>
    	<a href="__MODULE__/Article/stories_ls/" class="on">
        	<div class="pic"><img src="__PUBLIC__/wx/img/icon-article02.png"/></div>
            <div class="topic">乡村夜话</div>
        </a>
    	<a href="http://www.xiangtws.com/index.php/Wx/Product/index.html">
        	<div class="pic"><img src="__PUBLIC__/wx/img/icon-landmark.png"/></div>
            <div class="topic">地标产品</div>
        </a>
    	<a href="http://www.xiangtws.com/Wx/User/user/">
        	<div class="pic"><img src="__PUBLIC__/wx/img/icon-my.png"/></div>
            <div class="topic">会员中心</div>
        </a>
    </div>
</div>
<script src="__PUBLIC__/wx/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
//瀑布流
var page=1;
$(function () {
	$(window).scroll(function () {
		if (($(document).height() - $(this).scrollTop() - $(this).height())<1){	
			setTimeout(function(){
				//alert("getMore");
				page++;
				getMore();
			},2000);
		}
	});
})
function getMore(){
    $.ajax({
    type : "GET",
    dataType : "json",
    url: "__MODULE__/Article/stories_ls/type/load/page/"+page+"/keyword/{$keyword}/",
    async:false,
    success: function(data){
		
		/*if(data=='0'){
			var instr="<option value='0'>没有符合的村庄</option>";
			$(".v-control option").remove();//移除所有option
			$(".v-control").append(instr);//添加新的option
			}else{
				var instr="";
				for(var i=0;i<data.length;i++){
					instr+="<option value='"+data[i].id+"'>"+data[i].title+"		("+data[i].a1+"-"+data[i].a2+"-"+data[i].a3+"-"+data[i].a4+"-"+data[i].a5+")</option>";
					}//end for
				$(".v-control option").remove();//移除所有option
				$(".v-control").append(instr);//添加新的option
			}*/
    }
	});//end ajax
}//end fun
</script>
</body>
</html>